import request from '@/utils/request'

export function getBorrowListRequest(query) {
  return request({
    url: '/book/lend/getLendMessage',
    method: 'get',
    params: query
  })
}

export function logicalDeleteBorrow(query) {
  return request({
    url: '/book/lend/updateIsDelete',
    method: 'post',
    data: query
  })
}

export function returnBookRequest(query) {
  return request({
    url: '/book/lend/returnBook',
    method: 'post',
    data: query
  })
}

export function submitRequest(query) {
  return request({
    url: '/book/lend/lossReport',
    method: 'post',
    data: query
  })
}

export function continueBorrowRequest(query) {
  return request({
    url: '/book/lend/renewBook',
    method: 'post',
    data: query
  })
}

export function getExpiringRequest(query) {
  return request({
    url: '/book/lend/getExpiring',
    method: 'get',
    params: query
  })
}
//
// export function exportBorrowRequest(query) {
//   return request({
//     url: '/book/lend/export',
//     method: 'post',
//     data: query
//   })
// }
